/**
 * @author huiwensong.2012, huangjm.2012
 *
 */
package entity;

public class Section {
	private Course course;
	private String sectionCode;
	private String dayOfWeek;
	private String startTime;
	private String endTime;
	private String instructor;
	private String venue;
	private int size;

	public Section(Course course, String sectionCode,
			String dayOfWeek, String startTime, String endTime,
			String instructor, String venue, int size) {
		this.course = course;
		this.sectionCode = sectionCode;
		this.size = size;
		this.dayOfWeek = dayOfWeek;
		this.startTime = startTime;
		this.endTime = endTime;
		this.instructor = instructor;
		this.venue = venue;
	}

	public Course getCourse() {
		return course;
	}

	public String getSectionCode() {
		return sectionCode;
	}

	public int getSize() {
		return size;
	}

	public String getDayOfWeek() {
		return dayOfWeek;
	}

	public String getStartTime() {
		return startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public String getInstructor() {
		return instructor;
	}

	public String getVenue() {
		return venue;
	}

	@Override
	public String toString() {
		return "\"course\": \"" + course + "\", \"section\": \"" + sectionCode
				+ "\", \"day\": \"" + dayOfWeek + "\", \"start\": \""
				+ startTime + "\", \"end\": \"" + endTime
				+ "\", \"instructor\": \"" + instructor + "\", \"venue\": \""
				+ venue + "\", \"size\": " + size;
	}

}
